import Vue from 'vue'
import Vuex from 'vuex'

import dict from './dict'
import user from './user'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    user,
    dict,
  },
  state: {
    baseUrl: "http://localhost"
    // baseUrl: "http://139.62.3.59"
  },
  getters: {
    dict: state => state.dict.dict,
    token: state => state.user.token,
    userInfo: state => state.user.userInfo,
  },
})
